package net.osweb.crm.modules.customer.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <p>
 * Title:Businesshistory.java
 * </p>
 * <p>
 * Description:拜访记录表
 * </p>
 * <p>
 * Copyright: Copyright (c) 2010
 * </p>
 * <p>
 * Company:
 * </p>
 * 
 * @author <a href="jincool.cao@126.com">jincao</a>
 * @version: 1.0
 * @time:2011年8月5日14:56:24
 */
@Entity
@Table(name = "CUSTOMER_BUSINESS_HISTORY")
public class BusinessHistory implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1747516385875465060L;
	private Integer id;
	private Integer userid;
	private String contactType;
	private Integer customerId;
	private Integer contactId;
	private String subject;
	private Timestamp createtime;
	private String visitype;
	private String context;
	private Timestamp modifytime;
	private Integer isavailability;
	private Timestamp userviewtime;
	private String comment;

	// Constructors

	/** default constructor */
	public BusinessHistory() {
	}

	/** full constructor */
	public BusinessHistory(Integer userid, String contactType,
			Integer customerId, Integer contactId, String subject,
			Timestamp createtime, String visitype, String context,
			Timestamp modifytime, Integer isavailability,
			Timestamp userviewtime, String comment) {
		this.userid = userid;
		this.contactType = contactType;
		this.customerId = customerId;
		this.contactId = contactId;
		this.subject = subject;
		this.createtime = createtime;
		this.visitype = visitype;
		this.context = context;
		this.modifytime = modifytime;
		this.isavailability = isavailability;
		this.userviewtime = userviewtime;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "contact_type")
	public String getContactType() {
		return this.contactType;
	}

	public void setContactType(String contactType) {
		this.contactType = contactType;
	}

	@Column(name = "customer_id")
	public Integer getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	@Column(name = "contact_id")
	public Integer getContactId() {
		return this.contactId;
	}

	public void setContactId(Integer contactId) {
		this.contactId = contactId;
	}

	@Column(name = "subject")
	public String getSubject() {
		return this.subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "visitype")
	public String getVisitype() {
		return this.visitype;
	}

	public void setVisitype(String visitype) {
		this.visitype = visitype;
	}

	@Column(name = "context")
	public String getContext() {
		return this.context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	@Column(name = "modifytime", length = 19)
	public Timestamp getModifytime() {
		return this.modifytime;
	}

	public void setModifytime(Timestamp modifytime) {
		this.modifytime = modifytime;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

	@Column(name = "userviewtime", length = 19)
	public Timestamp getUserviewtime() {
		return this.userviewtime;
	}

	public void setUserviewtime(Timestamp userviewtime) {
		this.userviewtime = userviewtime;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}